/*zliMT9fL4kUDipldcD83ZI/2JYndfLSWTfkJOR/s8HYBkhOolZMXTmL5yo505j/0*/
/*
 * @Author: xiahui 
 * @PageInfo: 退出转单 
 * @Date: 2019-02-21 08:27:04 
 * @Last Modified by: zhangmi
 * @Last Modified time: 2021-09-10 12:11:05
 */
import { AREA, URL, PAGECODE } from '../../constance';
import { showQuitTransferWarningDialog } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
export default function(props) {
	let allprocess = props.transferTable.getTransformFormStatus(AREA.cardLeftId);
	// let source = props.getUrlParam('source'); // 来源页
	let channelType = props.getUrlParam('channelType'); //推单标识
	if (allprocess === false) {
		showQuitTransferWarningDialog({
			beSureBtnClick: () => {
				if (channelType) {
					props.pushTo(URL.list, {
						appcode: URL.returnAppcode,
						pagecode: PAGECODE.listPagecode
					});
				} else {
					props.pushTo(URL.list, { pagecode: PAGECODE.listPagecode });
				}
			}
		});
	} else {
		if (channelType) {
			props.pushTo(URL.list, {
				appcode: URL.returnAppcode,
				pagecode: PAGECODE.listPagecode
			});
		} else {
			props.pushTo(URL.list, { pagecode: PAGECODE.listPagecode });
		}
	}
}

/*zliMT9fL4kUDipldcD83ZI/2JYndfLSWTfkJOR/s8HYBkhOolZMXTmL5yo505j/0*/